package com.ge.modules.dao;


import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.ge.modules.entity.TbTechnicianToken;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

/**
 *
 * @author wuye
 * @date 2017/11/24
 */
@Mapper
@Repository
public interface TbTechnicianTokenDao extends BaseMapper<TbTechnicianToken> {

	TbTechnicianToken queryByTechnicianId(Integer technicianId);

	TbTechnicianToken queryByToken(String token);

	int update(TbTechnicianToken tbToken);

	Integer save(TbTechnicianToken tbToken);

    void deleteByTechnicianToken(TbTechnicianToken technicianToken);
}